//
//  HeadLineDetailVC.m
//  LuCoding
//
//  Created by lanou3g on 15/10/14.
//  Copyright © 2015年 自由科技. All rights reserved.
//

#import "HeadLineDetailVC.h"

@interface HeadLineDetailVC ()
@property (nonatomic, strong) UIWebView *webView;

@end

@implementation HeadLineDetailVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    _webView = [[UIWebView alloc] initWithFrame:[UIScreen mainScreen].bounds];
    self.view = _webView;
    
    NSURL *url = [NSURL URLWithString:self.detailWebUrl];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    [self.webView loadRequest:request];
    
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"back" style:UIBarButtonItemStyleDone target:self action:@selector(back)];
    
}

- (void)back{
    [self.navigationController dismissViewControllerAnimated:YES completion:nil];
}



@end
